package com.zt.bus.line.inter;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zt.bus.line.model.Dispatch;

public interface DispatchMapper {
    int insert(Dispatch record);
    
    int updateByPrimaryKeySelective(Dispatch record);
    
    int deleteByPrimaryKey(String id);
    
    void deleteByPlanIdAndDepartDate(@Param("planId") String planId,@Param("departDate") Date departDate);
    
    List<Dispatch> selectByPlanIdAndDepartDate(@Param("planId") String planId,@Param("departDate") Date departDate);
    
    List<Dispatch> selectByDriverNo(@Param("driverNo") String driverNo);
}